<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input name="row[subject_id]" type="hidden" value="{$subjectId}">
    <input name="row[unit_id]" type="hidden" value="0">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('题目名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-question_name" data-rule="required" class="form-control" name="row[question_name]" type="text">
        </div>
    </div>



    <div class="form-group">
        <label for="unit_id" class="control-label col-xs-12 col-sm-2">{:__("章节")}</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                <select class="province form-control" name="province" data-url="yexam/unit/cxselect"></select>
                <select class="city form-control" name="city" data-url="yexam/unit/cxselect"></select>
                <select class="area form-control" name="area" data-url="yexam/unit/cxselect"></select>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('题目类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-questiontype" data-rule="required" class="form-control " name="row[questiontype]">
                {foreach name="typeList" item="vo"}
                <option data-val="{:question_format($vo,false)}" value="{$key}">{:question_format($vo)}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <input type="hidden" name="row[type]" value="{$default}" id="type">
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('题目类型')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control " name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    -->


    <div class="form-group select-num">
        <label class="control-label col-xs-12 col-sm-2" for="uestionselectnumber">{:__('选项数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" name="row[uestionselectnumber]" data-rule="required" id="uestionselectnumber">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4" selected="">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
            </select>
        </div>
    </div>


    <div class="form-group panduan"  style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('正确答案')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[right_answer_panduan]', ['1'=>__('对'), '0'=>__('错')])}
        </div>
    </div>
    <div class="form-group danxuan">
        <label class="control-label col-xs-12 col-sm-2">{:__('正确答案')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[right_answer_danxuan]', ['A'=>__('A'), 'B'=>__('B'), 'C'=>__('C'), 'D'=>__('D'), 'E'=>__('E'), 'F'=>__('F'), 'G'=>__('G'), 'H'=>__('H'), 'I'=>__('I'), 'J'=>__('J'), 'K'=>__('K'), 'L'=>__('L'), 'M'=>__('M'), 'N'=>__('N'), 'O'=>__('O')])}
        </div>
    </div>
    <div class="form-group duoxuan" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('正确答案')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_checkboxs('right_answer_duoxuan[]', ['A'=>__('A'), 'B'=>__('B'), 'C'=>__('C'), 'D'=>__('D'), 'E'=>__('E'), 'F'=>__('F'), 'G'=>__('G'), 'H'=>__('H'), 'I'=>__('I'), 'J'=>__('J'), 'K'=>__('K'), 'L'=>__('L'), 'M'=>__('M'), 'N'=>__('N'), 'O'=>__('O')])}
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">A:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_A" class="form-control" name="row[answer][A]" type="text">
        </div>
    </div>

    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">B:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_B" class="form-control" name="row[answer][B]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">C:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_C" class="form-control" name="row[answer][C]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">D:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_D" class="form-control" name="row[answer][D]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">E:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_E" class="form-control" name="row[answer][E]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">F:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_F" class="form-control" name="row[answer][F]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">G:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_G" class="form-control" name="row[answer][G]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">H:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_H" class="form-control" name="row[answer][H]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">I:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_I" class="form-control" name="row[answer][I]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">J:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_J" class="form-control" name="row[answer][J]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">K:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_K" class="form-control" name="row[answer][K]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">L:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_L" class="form-control" name="row[answer][L]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">M:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_M" class="form-control" name="row[answer][M]" type="text">
        </div>
    </div>
    <div class="form-group xuanze">
        <label class="control-label col-xs-12 col-sm-2">N:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_answer_N" class="form-control" name="row[answer][N]" type="text">
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('解析')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" class="form-control" name="row[area]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
